package org.ibase4j.system.service;

import org.ibase4j.system.model.SysUser;
import top.ibase4j.core.base.BaseService;
import top.ibase4j.core.support.Pagination;
import top.ibase4j.core.support.login.ThirdPartyUser;

import java.util.Map;

/**
 * SysUser服务接口
 *
 * @author ShenHuaJie
 * @version 2016-08-27 22:39:42
 */
public interface SysUserService extends BaseService<SysUser> {

    /** 查询第三方帐号用户Id */
    Long queryUserIdByThirdParty(ThirdPartyUser param);

    /** 保存第三方帐号 */
    SysUser insertThirdPartyUser(ThirdPartyUser thirdPartyUser);

    /**
     * 加载所有用户信息
     */
    void init();

    SysUser getUserByLoginName(String account);

    Pagination<SysUser> queryApp(Map<String, Object> params);
}
